package org.iabako.client.ui.page.business;

import org.iabako.client.ui.form.AbstractForm;
import org.iabako.client.ui.form.business.AddLinkForm;
import org.iabako.shared.entity.business.BusinessEntity;
import org.iabako.shared.exception.IabakoPackageForbiddenException;

/**
 * Created by jose on 16/02/15.
 */
public class AddLink extends AddLinkForm {

    public AddLink(AbstractForm parent) {
        super();
        parentForm = parent;

        if (parentForm.entity instanceof BusinessEntity) {
            setEntity((BusinessEntity) parentForm.entity);
        }
    }
}
